# Config.py

"""
    Parses command line and config file options and returns a settings object.
"""

import argparse

def Get():
	"""Collect command line and config file options into a common object"""

	# Get a new argument-parser reference
	parser = argparse.ArgumentParser(prog="RocketWheels")

	# Define available arguments
	parser.add_argument("-d", "--debug", dest="debug", action="store_const", const=True, default=False, help="output debug info")

	# Create an dummy class to hold the return object
	class conf:
		pass

	# Create an instance of my dummy class
	retConf = conf()

	# Add cmd line vars to the config
	retConf = parser.parse_args()

	# Return the config
	return retConf

def Set():
	"""Write the configuration settings out to a file"""

	self.textLabel.setText(self.textLabel.text() + "\nWrite config")
